<?php

if (isset($parentEventId))
    $parent = new BWEvent($parentEventId);
if (isset($parentMessageId))
    $parent = new BWMessage($parentMessageId);
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

$messageList = $parent->getMessageManager()->getMessageList();

foreach ($messageList as $message) {
    $control->renderView('myPools_messageListItem', array('message' => $message));
}
$control->renderView('share','share');